<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
<head>
<title>修改用户</title>
<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js"
	type="text/javascript"></script>
<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
<script src="${contextPath}/scripts/My97DatePicker/WdatePicker.js"
	type="text/javascript"></script>
<link href="${contextPath}/styles/default.css" rel="stylesheet"
	type="text/css" />
<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
</head>
<body leftmargin='8px' topmargin='8px'>
	<div class="navigation">
		<span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
		 <a href="javascript:window.history.back();">返回</a>
		  <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
			 <a href="javascript:window.history.forward();">前进</a> 
			 <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
			 <a
			href="javascript:window.location.reload();">刷新</a> </span>系统管理&gt;&gt;用户管理&gt;&gt;修改
		
	</div>
<div class="xt_main_right_center">
	<form name="form1" action="update.do" method="post" onsubmit="return Validator.Validate(this,3)">
					<input type="hidden" name="redirectUrl" value="<s:property value='redirectUrl'/>" />
					<input type="hidden" name="us.id" value="${us.id }" />
						<table width="100%" border="0" cellpadding="1" cellspacing="1">
							<tr>
								<td class="right-td-width-bg">账号：</td>
								<td><input type="text" name="us.name" id="name" class="input" value="${us.name }" readonly /></td>
								<td class="right-td-width-bg">状态：</td>
								<td >
								<label><input type="radio" value="0" name="us.locked" <s:if test='us.locked.equals("0")'> checked</s:if>/>激活</label>
									<label><input type="radio" value="1" name="us.locked"  <s:if test='us.locked.equals("1")'> checked</s:if>/>禁用</label>
								 </td>
							</tr>
							<tr>
								<td class="right-td-width-bg"><font color="red" size="2">* </font>密码：</td>
								<td><input type="password" name="us.password" id="password" class="input" value="${us.password }" msg="密码不能为空" dataType="Require"/></td>
								<td class="right-td-width-bg">性别：</td>
								<td><label><input type="radio" name="us.sex" value="男" <s:if test='us.sex.equals("男")'> checked</s:if>/>男</label>
									<label><input type="radio" name="us.sex" value="女" <s:if test='us.sex.equals("女")'> checked</s:if>/>女</label></td>
							</tr>
							<tr>
								<td class="right-td-width-bg"><font color="red" size="2">* </font>用户名称：</td>
								<td><input type="text" name="us.realName" id="realName" class="input" value="${us.realName }" msg="名称不能为空" dataType="Require"/></td>
								<td class="right-td-width-bg">联系方式：</td>
								<td><input type="text" name="us.telephone" id="telephone" class="input" value="${us.telephone }" msg="电话格式不正确" dataType="PhoneOrMobile"/></td>
							</tr>
							<tr>
								<td class="right-td-width-bg">岗位：</td>
								<td>
									<label><input type="radio" name="post" value="0" <s:if test='@com.jysz.certificate.persistence.enums.PostType@Admin.equals(us.post)'> checked</s:if>/>管理员</label>
									<label><input type="radio" name="post" value="1" <s:if test='@com.jysz.certificate.persistence.enums.PostType@Shop.equals(us.post)'> checked</s:if>/>驻店顾问</label>
									<label><input type="radio" name="post" value="2" <s:if test='@com.jysz.certificate.persistence.enums.PostType@Manager.equals(us.post)'> checked</s:if>/>区域经理</label>
									<label><input type="radio" name="post" value="3" <s:if test='@com.jysz.certificate.persistence.enums.PostType@Responsible.equals(us.post)'> checked</s:if>/>监管科</label>
									<label><input type="radio" name="post" value="4" <s:if test='@com.jysz.certificate.persistence.enums.PostType@RESTS.equals(us.post)'> checked</s:if>/>其他</label>
								</td>
								<td class="right-td-width-bg">邮箱</td>
								<td><input type="text" name="us.email" id="email"
									class="input" value="${us.email }" msg="邮箱格式不正确" dataType="Email"/></td>
							</tr>
							<tr>
								<td class="right-td-width-bg"><font color="red" size="2">* </font>工号：</td>
								<td>
									<input type="text" name="us.jobNumber" class="input" value="${us.jobNumber }"/>
									<font color="red"><s:property value="msgMap.get('jobNumber')"/></font>
								</td>
								<td class="right-td-width-bg">生日</td>
								<td><input  class="Wdate"   type="text" name="us.birthday" width="200px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" value="<s:date name="us.birthday" format="yyyy-MM-dd"/>"/>
								</td>
							</tr>
							<tr>
								<td colspan="4" align="center">
								<input type="submit" class="btn_submit" value="" />
								 <input type="reset" class="btn_rest" value="" />
								 </td>
							</tr>
						</table>
					</form>
				</div>
</body>
</html>